package SpringDemo.Service;

import SpringDemo.Repository.UserRepository;
import SpringDemo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
public class UserService {


    @Autowired
    public UserRepository userRepository;

    public User getUser(){
        return userRepository.getUser();
    }
}
